#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QPainter>
#include <QPixmap>
#include <mypushbutton.h>
#include <QTimer>
#include "dataconfig.h"
#include "mycoin.h"

class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    //explicit PlayScene(QWidget *parent = nullptr);
    PlayScene(int index);
    //成员变量 记录关卡索引
    int levalIndex;

    void paintEvent(QPaintEvent *);

    int gameArray[4][4]; //二维数组数据

    MyCoin * coinBtn[4][4]; //金币按钮数组

    //是否胜利的标志
    bool isWin=false;

signals:
    void chooseSceneBack();
};

#endif // PLAYSCENE_H
